package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.RepayDao;
import com.zhiyou100.model.Repay;


@Service
public class RepayServiceImpl implements RepayService {
	
	@Autowired
	private RepayDao repayDao;

	

	@Override
	public void save(Repay repay) {
		
		repayDao.save(repay);
	}

	@Override
	public void update(Repay repay) {
	
		repayDao.update(repay);
		
	}

	@Override
	public void delete(String[] ids) {
		
		repayDao.delete(1);
		
	}

	@Override
	public ArrayList<Repay> findById(int id) {
		
		return repayDao.findAll(1);
	}
	
	
	
	
	

}
